<%--
 *  File:    ExpertInfo.jsp
 *  @Author: Jamesli 
 *  Date:    2010/11/11
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.ExpertInfo");
  String strModuleName = "ERM";
  String privilegeCode = "10905";
  String contextPath = request.getContextPath();
  HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>ExpertInfo</title>
<PageFlow:CheckPageFlow pageName="p_expertedit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript">
function page_back(){
	self.location.href="ExpertSummary.jsp?<%= OvalTools.randomURL()%>";
}

var popwindow;
function page_RelationPop(){
	if (isEmpty(document.cform.doctorid.value)){
        return;
    }	
	var doctorid = cform.doctorid.value;
	var url = "DoctorRelativePopWindow.jsp?<%= OvalTools.randomURL() %>&doctorid="+doctorid + "&readonly=Y";
	var windowAttribute = "height=400, width=600,top=100,left=100, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=yes";
	if(popwindow!=null) popwindow.close();
 	popwindow = window.open(url,null,windowAttribute);
}

function page_doctorProd()
{
	if (isEmpty(document.cform.doctorid.value)){
        return;
    }
  if(popwindow!=null)
    popwindow.close();
  popwindow = window.open('DoctorProdPopWindow.jsp?<%= OvalTools.randomURL() %>&doctorid=' + cform.doctorid.value + '&readonly=Y','newwindow', 'height=250, width=500,top=100,left=100,toolbar=n0, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="cform" method="post" action="<%=contextPath %>/Dispatcher" target="_self">
<custom:hidden property="doctorid" name="expertinfo"/>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" >
  <tr> 
    <td valign="top"> 
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
          <tr> 
            <td colspan="4" class="deepblue-left"><img src="<%=contextPath %>/images/<%= strLanguageCode %>/quote.gif"> 
                <%= label.getLabelName("L_Expert") + label.getLabelName("L_Information") + label.getLabelName("L_Colon") %></td>
          </tr>
          <tr> 
            <td class="need" width="20%"><%=label.getLabelName("L_Expert") + label.getLabelName("L_Code") + label.getLabelName("L_Colon") %></td>
            <td width="30%"><custom:write property="doctorcode" name="expertinfo" nbsp="true"/></td>
            <td class="need" width="20%"><%=label.getLabelName("L_Expert") + label.getLabelName("L_Name") + label.getLabelName("L_Colon") %></td>
            <td width="30%"><custom:write property="doctorname" name="expertinfo" nbsp="true"/></td>
          </tr>
          <tr>
          	<td class="need"><%=label.getLabelName("L_WorkPlace") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="hospitalcode" name="expertinfo" nbsp="true"/>
            	<custom:write property="hospitalname" name="expertinfo" nbsp="true"/>
            </td>
            <td class="need" ><%= label.getLabelName("L_Gender") + label.getLabelName("L_Colon") %></td>
            <td>
				<custom:selectdic name="expertinfo" dictType="Gender" property="gender" disabled="true"/>
			</td>
          </tr>
          <tr>
            <td class="td-text"><%= label.getLabelName("L_Property") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:selectdic name="expertinfo" dictType="DoctorType" property="doctortype" disabled="true"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_JobGrade") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:selectdic name="expertinfo" dictType="DoctorJobGrade" property="jobgrade" defaultValue="------" defaultValueCost="" disabled="true"/>
            </td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_Departments") + label.getLabelName("L_Colon") %></td>
            <td><custom:selectdic name="expertinfo" dictType="HospitalDepartment" property="department" disabled="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_JobTitle") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:selectdic name="expertinfo" dictType="DoctorJobTitle" property="jobtitle" defaultValue="------" defaultValueCost="" disabled="true"/>
            </td>
          </tr>
          <tr>
            <td class="td-text"><%= label.getLabelName("L_level") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:selectdic name="expertinfo" dictType="DoctorGrade" property="grade" defaultValue="------" defaultValueCost="" disabled="true"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_Product") + label.getLabelName("L_Colon") %></td>
            <td>           	
            	<a onclick="javascript:page_doctorProd();"><custom:button type="3" label="L_Asterisk" imgsrc="flash.gif" border="0"/></a>
            </td>
          </tr>
          <tr>
          	
          	<td class="need"><%= label.getLabelName("L_Status") + label.getLabelName("L_Colon") %></td>
          	<td>
          		<custom:selectdic name="expertinfo" dictType="Status" property="status" valueCriteria="41,28" disabled="true"/>
            </td>
            <td class="need"><%= label.getLabelName("L_SalesRep") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="hospitalcode" name="expertinfo" nbsp="true"/>
            	<custom:write property="hospitalname" name="expertinfo" nbsp="true"/>
            </td>
          </tr>
          <tr>
          	<td class="need"><%= label.getLabelName("L_Province") + label.getLabelName("L_Colon") %></td>
          	<td>
            	<custom:write property="regioncode" name="expertinfo" nbsp="true"/>
            	<custom:write property="regionname" name="expertinfo" nbsp="true"/>
            </td>
            <td class="need"><%= label.getLabelName("L_CityName") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="citycode" name="expertinfo" nbsp="true"/>
            	<custom:write property="cityname" name="expertinfo" nbsp="true"/>
            </td>
          </tr>
          <tr>
            <td class="need"><%= label.getLabelName("L_Type") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:selectdic name="expertinfo" dictType="DoctorCategory" property="category" disabled="true"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_Relative") + label.getLabelName("L_Colon") %></td>
            <td>           	
            	<a onclick="javascript:page_RelationPop();"><custom:button type="3" label="L_Asterisk" imgsrc="flash.gif" border="0"/></a>
            </td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_OutpatientQty") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="outpatientqty" nbsp="true"/></td>
            <td class="td-text"><%= "E-mail" + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="email" nbsp="true"/></td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_Phone") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="telephone" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_MobilePhone") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="cellphone" nbsp="true"/></td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_MailAddr") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="address" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_ZipCode") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="zipcode"nbsp="true"/></td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_Birthday") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="birthday" dataType="date" dataFormat="yyyy-MM-dd" nbsp="true"/>
            </td>
            <td class="td-text"><%= label.getLabelName("L_GraduatedFrom") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="college"/></td>
          </tr>
          <tr>
			<td class="need"><%= label.getLabelName("L_Interests") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="interest" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_AcademicPosition") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="position" property="position" nbsp="true"/></td>
          </tr>
          <tr>
			<td class="need"><%= label.getLabelName("L_Speciality") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="speciality" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_AcademicTendency") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="tendency" nbsp="true"/></td>
          </tr>
          <tr>
			<td class="td-text"><%= label.getLabelName("L_MedicinesNForms") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="partner" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_Comments") + label.getLabelName("L_Colon") %></td>
            <td><custom:write name="expertinfo" property="comments" nbsp="true"/></td>
          </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
      <td height="49" class="td_center">
      	<a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
      </td>
  </tr>
</table>
</form>
</body>
</html>